#include "BubbleSort.h"
#include "CommonLib.h"

void BubbleSort(int ary[], int size)
{
    for (int i = 0; i < size - 1; ++i)
    {
        for (int j = i + 1; j < size; ++j)
        {
            if (ary[j] < ary[i])
            {
                CCommonLib::Exchange(ary[j], ary[i]);
            }
        }
    }
}